from django import newforms as forms
from classes import TableForm

class PersonalForm(TableForm):
	cv_name = forms.CharField(max_length=64, label="CV Name",
		help_text="""<div class="help">Name your CV, e.g.: <strong>Manager's CV</strong>""")
	date_of_birth = forms.DateField(required=False, 
		help_text="""<div class="help">Give your date of birth (dd/mm/yyyy), e.g.:<strong>02.04.1963</strong></div>""")
	surname = forms.CharField(required=False, max_length=64, label="Surname(s)", 
		help_text="""<div class="help">State your surname(s), e.g.: 
			<strong>SMITH</strong> in conformity with the rules that apply in your country.</div>""")
	first_name = forms.CharField(required=False, max_length=64, label="First Name(s)",
		help_text="""<div class="help">State your first name(s), e.g.: <strong>John Andrew</strong> in 
					conformity with the rules that apply in your country.</div>""")
	nationality = forms.CharField(required=False, max_length=64, label="Nationality")
	street = forms.CharField(required=False, max_length=256, label="Street / Street Number",
		help_text="""<div class="help">State street and street number of contact address, e.g.:<strong>12, High Street</strong></div>""")
	city = forms.CharField(required=False, max_length=64, label="City",
		help_text="""<div class="help">State name of city of contact address, e.g.:<strong>Berlin</strong></div>""")
	postal = forms.CharField(required=False, label="Postal Code", max_length=32,
		help_text="""<div class="help">State postal code of contact address, e.g.:<strong>SW1P 3AT</strong></div>""")
	country = forms.CharField(required=False, label="Country", max_length=64,
		help_text="""<div class="help">State country e.g.<strong>Netherlands</strong></div>""")
	phone = forms.CharField(required=False, label="Telephone(s)", max_length=256,
		help_text="""<div class="help">State the telephone number(s) where you wish to be contacted, e.g.
		<strong>Fixed: 0845 120 30 45</strong></div>""")
	mobile = forms.CharField(required=False, label="Mobile", max_length=256,
		help_text="""<div class="help">Write your mobile phone number, e.g.:
		<strong>6945 120 30 46</strong></div>""", widget=forms.Textarea)
	gender = forms.ChoiceField(required=False, widget=forms.RadioSelect, choices=((1,'M'), (2, 'F'), (0, 'Do not Indicate')))
